﻿using Microsoft.Extensions.Hosting;

namespace Himp.Platform.GraphQL
{
    public class TestQlType : ObjectType<PosInfo>
    {
        protected override void Configure(IObjectTypeDescriptor<PosInfo> descriptor)
        {
            descriptor.Description("Represents Post Entity Type.");
            // 构建schema时忽略这个字段
            descriptor.Field(d => d.Id).Ignore();
            descriptor.Field("GetKeys").Ignore();
            descriptor.Field(t => t.GetKeys()).Ignore();
        }
    }
}
